package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.dto.doctor.drugReaction.SaveDrugReactionDto;
import com.ccys.db.vo.doctor.drugReaction.SaveDrugReactionVo;
import com.ccys.doctor.service.DrugReactionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: WhiteCoat
 * @description: 药物反应接口
 * @author: ZhangJingCan
 * @create: 2024-02-08 11:32
 **/

@RestController
@Api(tags = "药物反应接口")
@RequestMapping("drugReaction")
public class DrugReactionController {

    @Autowired
    private DrugReactionService drugReactionService;

    @ApiOperation("保存药物反应")
    @PostMapping(value = "/SaveDrugReaction")
    public ResponseResultApp<SaveDrugReactionVo> saveDrugReaction(@RequestBody SaveDrugReactionDto dto) {
        return drugReactionService.saveDrugReaction(dto);
    }

}
